package com.manage.project.biz.service.impl;

import java.util.List;

import com.manage.project.biz.domain.CivilEnginneeringFacility;
import com.manage.project.biz.mapper.CivilEnginneeringFacilityMapper;
import com.manage.project.biz.service.ICivilEnginneeringFacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 土建结构设施管理Service业务层处理
 *
 * @author 小赵
 * @date 2022-04-28
 */
@Service
public class CivilEnginneeringFacilityServiceImpl implements ICivilEnginneeringFacilityService
{
    @Autowired
    private CivilEnginneeringFacilityMapper civilEnginneeringFacilityMapper;


    @Override
    public CivilEnginneeringFacility getByNameAndMileageNumber(String tunnelName, String facilityName, String mileageNumber) {
        return civilEnginneeringFacilityMapper.getByNameAndNumber(tunnelName,facilityName,mileageNumber);
    }

    @Override
    public CivilEnginneeringFacility selectCivilEnginneeringFacilityByFacilityId(Long facilityId)
    {
        return civilEnginneeringFacilityMapper.selectCivilEnginneeringFacilityByFacilityId(facilityId);
    }


    @Override
    public List<CivilEnginneeringFacility> selectCivilEnginneeringFacilityList(CivilEnginneeringFacility civilEnginneeringFacility)
    {
        return civilEnginneeringFacilityMapper.selectCivilEnginneeringFacilityList(civilEnginneeringFacility);
    }


    @Override
    public int insertCivilEnginneeringFacility(CivilEnginneeringFacility civilEnginneeringFacility)
    {
        return civilEnginneeringFacilityMapper.insertCivilEnginneeringFacility(civilEnginneeringFacility);
    }


    @Override
    public int updateCivilEnginneeringFacility(CivilEnginneeringFacility civilEnginneeringFacility)
    {
        return civilEnginneeringFacilityMapper.updateCivilEnginneeringFacility(civilEnginneeringFacility);
    }


    @Override
    public int deleteCivilEnginneeringFacilityByFacilityIds(Long[] facilityIds)
    {
        return civilEnginneeringFacilityMapper.deleteCivilEnginneeringFacilityByFacilityIds(facilityIds);
    }


    @Override
    public int deleteCivilEnginneeringFacilityByFacilityId(Long facilityId)
    {
        return civilEnginneeringFacilityMapper.deleteCivilEnginneeringFacilityByFacilityId(facilityId);
    }
}
